cmake_minimum_required(VERSION 3.5)
find_package(PythonLibs 2.7) #need for matplotlib

add_library(brush_model brush_model.cpp)
target_link_libraries(brush_model ${catkin_LIBRARIES})
add_library(tire_model INTERFACE)
target_link_libraries(tire_model INTERFACE
						brush_model
		)

set(tire_model_test_path "${CMAKE_CURRENT_SOURCE_DIR}/test/")  
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/include/tire_model_test_path.h.in ${CMAKE_CURRENT_SOURCE_DIR}/include/tire_model_test_path.h)
add_executable(test_yaml_to_map test/test_yaml_to_map.cpp)
target_include_directories(test_yaml_to_map PRIVATE ${PYTHON_INCLUDE_DIRS})
target_link_libraries(test_yaml_to_map Kalman ${PYTHON_LIBRARIES} yaml-cpp) 
add_executable(test_brush_model test/test_brush_model.cpp)
target_link_libraries(test_brush_model brush_model)
add_executable(test_tire_factory test/test_tire_factory.cpp)
target_link_libraries(test_tire_factory tire_model ${catkin_LIBRARIES})